package com.cy.detectsys.controller.azure;

import com.cy.detectsys.entity.vo.TargetInfoVo;
import com.cy.detectsys.service.TargetAssetsService;
import com.cy.detectsys.service.TargetInfoService;
import com.cy.detectsys.util.BaseResponseInfo;
import jakarta.annotation.Resource;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;


/**
 * @author asus
 * @version 1.0
 * @description: TODO
 * @date 2024/6/12 16:41
 */
@RestController
@RequestMapping(value = "/targetInfoController")
public class TargetInfoController {

    @Resource
    TargetInfoService targetInfoService;




    /**
     * @description: TODO
     * @author   重点目标表
     * @date 2024/6/3 13:47
     * @version 1.0
     */
    @PostMapping("/KeyObjectList")
    private BaseResponseInfo KeyObjectList(@RequestBody TargetInfoVo targetInfoVo) {
        return targetInfoService.KeyObjectList(targetInfoVo);
    }

    /**
     * @description:
     * @param:  重点目标的 目标所属 和所属国家的下拉框
     * @return:
     * @author asus
     * @date: 2024/6/11 14:05
     */
    @PostMapping("/KeyObjectBox")
    private BaseResponseInfo KeyObjectBox() {

        return targetInfoService.KeyObjectBox();
    }

    
    /**
     * @description: TODO
     * @author  重点目标
     * @date 2024/6/6 16:54
     * @version 1.0
     */
    @PostMapping("/KeyObject")
    private BaseResponseInfo KeyObject() {
        return targetInfoService.KeyObject();
    }


    /**
     * @description: TODO
     * @author 重点行业的资产排名
     * @date 2024/6/5 14:14
     * @version 1.0
     */
    @PostMapping("/ownershipAssets")
    private BaseResponseInfo ownershipAssets() {
        return targetInfoService.ownershipAssets();
    }

    /**
     * @description: TODO
     * @author 微软云重点目标资产总数量
     * @date 2024/6/5 14:14
     * @version 1.0
     */
    @PostMapping("/assets")
    private BaseResponseInfo assets() {
        return targetInfoService.assets();
    }

    /**
     * @description: TODO
     * @author  重点目标详情
     * @date 2024/6/5 16:20
     * @version 1.0
     */
    @PostMapping("/KeyObjectDetails")
    private BaseResponseInfo KeyObjectDetails(@RequestBody TargetInfoVo TargetInfoVo) {
        return targetInfoService.KeyObjectDetails(TargetInfoVo);
    }

    /**
     * @description: TODO
     * @author  重点目标ip分布
     * @date 2024/6/5 16:20
     * @version 1.0
     */
    @PostMapping("/KeyObjectDetailsByIp")
    private BaseResponseInfo KeyObjectDetailsByIp(@RequestBody TargetInfoVo TargetInfoVo) {
        return targetInfoService.KeyObjectDetailsByIp(TargetInfoVo);
    }

    /**
     * @description: TODO
     * @author  重点目标端口分布
     * @date 2024/6/5 16:20
     * @version 1.0
     */
    @PostMapping("/KeyObjectDetailsByPort")
    private BaseResponseInfo KeyObjectDetailsByPort(@RequestBody TargetInfoVo TargetInfoVo) {
        return targetInfoService.KeyObjectDetailsByPort(TargetInfoVo);
    }

    /**
     * @description: TODO
     * @author  重点目标服务
     * @date 2024/6/5 16:20
     * @version 1.0
     */
    @PostMapping("/KeyObjectDetailsByService")
    private BaseResponseInfo KeyObjectDetailsByService(@RequestBody TargetInfoVo TargetInfoVo) {
        return targetInfoService.KeyObjectDetailsByService(TargetInfoVo);
    }

}
